package boot.spring.rabbitMQ.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;
import boot.spring.po.Mail;



@Component
public class TopicListener1 {
	@RabbitListener(queues = "topicqueue2")
	public void displayTopic(Mail mail) throws InterruptedException {
		Thread.sleep(1000L);
		System.out.println("cutstomer1从topicqueue2取出消息"+mail.toString());
	}
}
